import server from "../util/request.js";
//缴纳住院押金
export function payInpatientDeposit(data) {
    return server({
        url: '/api/finance/pay-deposit',
        method: 'post',
        data: data
        // data 格式: { applicationId, patientId, amount }
    });
}
//执行出院结算 (多退少补)
export function settleDischarge(data) {
    return server({
        url: '/api/finance/settle-discharge',
        method: 'post',
        data: data
        // data 格式: { dischargeApplicationId, patientId }
    });
}
//查询“待缴押金”的入院申请列表
export function listPendingDeposits(query) {
    return server({
        url: '/api/finance/pending-deposits',
        method: 'post',
        data: query
    });
}
//查询“待结算”的出院申请列表
export function listPendingSettlements(query) {
    return server({
        url: '/api/finance/pending-settlements',
        method: 'post',
        data: query
    });
}